home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1290 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: whopper.chem.wisc.edu!user
  2. From: cheatum@chem.wisc.edu (Chris Cheatum)
  3. Newsgroups: comp.lang.c
  4. Subject: timing a pulse
  5. Date: Fri, 12 Jan 1996 09:37:34 -0600
  6. Organization: F. F. Crim Group
  7. Message-ID: <cheatum-1201960937340001@whopper.chem.wisc.edu>
  8. NNTP-Posting-Host: whopper.chem.wisc.edu
  9.  
  10. Hi,
  11.  
  12. I am trying to write some code on a 486/33MHz in quick C for windows by
  13. Microsoft that will create a pulse for me.  The way it works is, I turn on
  14. a bit then I want to be able to wait a preset amount of time, about 1.5
  15. milliseconds, and the turn the bit off.  I can turn the bit on and off
  16. fine, but the resolution I can get with all of the timing routines I have
  17. tried is very poor.  I really need to be accurate to about .05
  18. milliseconds.  I have found a few routines that claim to do this, but they
  19. all seem to incorporate assembly functions.  My compiler allows inline
  20. assembly, but I do not have any experience with assembly, and do not know
  21. how to implement these routines into my code.  If someone could help
  22. either with some code that they know works or by helping me to implement
  23. the code that we ahve I would really appreciate it. 
  24.  
  25. Thank you
  26. Chris
  27.